package com.study.model.pojo.HRpojo;

import java.io.Serializable;
import javax.persistence.*;

import com.fasterxml.jackson.annotation.JsonIgnore;

import java.util.List;
import java.util.Set;


/**
 * The persistent class for the permission_tab database table.
 * 
 */
@Entity
@Table(name="permission_tab")
@NamedQuery(name="PermissionTab.findAll", query="SELECT p FROM PermissionTab p")
public class PermissionTab implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	private int permid;

	private String envisible;

	private String icon;

	private String index;

	private int pid;

	private String title;

	private int type;

	//bi-directional many-to-many association to RoleTab
//	@JsonIgnore
//	@ManyToMany(mappedBy="permissionTabs")
//  @JoinTable(
//    name="role_permission",//中间表名
//    joinColumns={@JoinColumn(name="permid")},//当前对象id在中间表的列名
//    inverseJoinColumns={@JoinColumn(name="roleid")}//关联的另一个表在中间表的列名
//   )
//	private Set<RoleTab> roleTabs;

	public PermissionTab() {
	}

	public int getPermid() {
		return this.permid;
	}

	public void setPermid(int permid) {
		this.permid = permid;
	}

	public String getEnvisible() {
		return this.envisible;
	}

	public void setEnvisible(String envisible) {
		this.envisible = envisible;
	}

	public String getIcon() {
		return this.icon;
	}

	public void setIcon(String icon) {
		this.icon = icon;
	}

	public String getIndex() {
		return this.index;
	}

	public void setIndex(String index) {
		this.index = index;
	}

	public int getPid() {
		return this.pid;
	}

	public void setPid(int pid) {
		this.pid = pid;
	}

	public String getTitle() {
		return this.title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public int getType() {
		return this.type;
	}

	public void setType(int type) {
		this.type = type;
	}

//	public Set<RoleTab> getRoleTabs() {
//		return this.roleTabs;
//	}
//
//	public void setRoleTabs(Set<RoleTab> roleTabs) {
//		this.roleTabs = roleTabs;
//	}

}